]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appDisplay: Remove unnecessary bind constraint
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Wed, 19 Feb 2020 12:20:05 +0000 (09:20 -0300)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Wed, 19 Feb 2020 12:20:05 +0000 (09:20 -0300)
Now that the bind constraint changes the preferred size of
the actor, a major flaw in the AppDisplay code was exposed:
the folder dialog depends on the preferred size of a parent,
and the parent depends on the preferred size of the folder
dialog.

While we know this is not actually true, we shouldn't rely
on broken behavior to achieve this result. What's interesting
is that the bind constraint used by the folder dialog is a
relic of the development phase; we now control the position
and size of the dialog with a combination of CSS, and alignment.

Remove the unnecessary bind constraint.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/1027

js/ui/appDisplay.js

index 01f87059abf3882b0df14f459bb6c54d3d85068c..a602ba65db8361a58f29179ce22c33ec482c3c1f 100644 (file)
@@ -1657,10 +1657,6 @@ var AppFolderDialog = GObject.registerClass({
             x_align: Clutter.ActorAlign.CENTER,
             y_align: Clutter.ActorAlign.CENTER,
         });
-        this.add_constraint(new Clutter.BindConstraint({
-            source: Main.overview.viewSelector,
-            coordinate: Clutter.BindCoordinate.ALL,
-        }));
 
         this._source = source;
         this._folder = folder;